//
//  WXPDeferRepaymentHeaderView.h
//  MexicoLoan
//
//  Created by wxp on 2025/3/19.
//

#import <UIKit/UIKit.h>

@interface WXPDeferRepaymentHeaderView : UIView

@property (nonatomic, strong) UIView * backView;
@property (nonatomic, strong) UIImageView * bigImg;
@property (nonatomic, strong) UILabel * nameLabel;
@property (nonatomic, strong) UILabel * stateLabel;

@property (nonatomic, strong) UILabel * moneyTitleLabel;
@property (nonatomic, strong) UILabel * moneyLabel;
@property (nonatomic, strong) UILabel * timetitleLabel;
@property (nonatomic, strong) UILabel * timeLabel;
@property (nonatomic, strong) UIButton * btnOpen;

@property (nonatomic, strong) UILabel * detailTitleLabel; // 详情展示
@property (nonatomic, strong) UIButton * openBtn;
@property (nonatomic, strong) UIView * detailBackView;
@property (nonatomic, strong) UIView * lineView;

@property (nonatomic, strong) UIView * fixedCopyView; // 固定文案
@property (nonatomic, strong) UILabel * fixedCopyLabel;

@property (nonatomic, copy)void(^blockOpenBtnClick)(void);
@property (nonatomic, strong) ModelRepaymentDetail * repaymentDetailModel;
@property (nonatomic, strong) ModelOrderDetail * orderDetailModel;
@property (nonatomic, strong) NSArray * aryDatas;

#pragma mark - 刷新view
// 展期还款
- (void)resetViewWithModelPostpone:(ModelPostpone *)modelPostpone repaymentDetailModel:(ModelRepaymentDetail *)repaymentDetailModel orderDetailModel:(ModelOrderDetail *)orderDetailModel;

// 正常还款
- (void)resetViewWithRepaymentDetailModel:(ModelRepaymentDetail *)repaymentDetailModel orderDetailModel:(ModelOrderDetail *)orderDetailModel array:(NSArray *)array;

@end

